   function getAddDriver(obj) {
	  var getstr = "?";
	  var roleValue = "";
	  
	  for(i = 0; i < obj.driverRole.length; i++)
	  {
		  if(obj.driverRole[i].checked == true)
		  {
			  roleValue = obj.driverRole[i].value;
		  }
	  }

	  getstr += "driverID=" + obj.drivers.value + "&";
	  getstr += "driverName=" + obj.drivers.options[obj.drivers.selectedIndex].text + "&";
	  getstr += "role=" + roleValue + "&";
	  getstr += "add=1";
	  
      makeRequest('includes/incidentEditDriver.php', getstr, 'outputSpan');
   }
   
   
   function getRemoveDriver(driver) {
	  var getstr = "?";
	  getstr += "driverID=" + driver + "&";
	  getstr += "add=0";
	  
      makeRequest('includes/incidentEditDriver.php', getstr, 'outputSpan');
   }

   function validateForm() {

        valid = true;

	if(incidentForm.replaytime.value == "" || incidentForm.replaytime.value == "hh:mm:ss" )
	{
		window.alert( "Sorry you have not specified the replay time.");
		valid = false;
	}
	if(incidentForm.corner.value == "" )
	{
		window.alert( "Sorry you have not specified which corner this incident occured at.");
		valid = false;
	}
	if(incidentForm.explanation.value == "" )
	{
		window.alert( "Sorry you have not entered a description of this incident.");
		valid = false;
	}
        if(document.getElementById("outputSpan").innerHTML == "")
        {
		window.alert( "Sorry you have not added any drivers to this report.");
		valid = false;
        }

        return valid;
   }